package com.haisen.core.utils;

/**
 * @author cjbi
 */
public enum ResultCodeEnum {

    OK("200", "处理成功"),
    BAD_REQUEST("400", "请求参数有误"),
    UNAUTHORIZED("401", "未授权"),
    PARAMS_MISS("483", "缺少接口中必填参数"),
    PARAM_ERROR("484", "参数非法"),
    FAILED_DEL_OWN("485", "不能删除自己"),
    FAILED_USER_ALREADY_EXIST("486", "该用户已存在"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误"),
    NOT_IMPLEMENTED("501", "业务异常"),
    FAILED_GROUP_ALREADY_EXIST("601","产品参数key已存在"),
    FAILED_ITEM_COPY_PROPERIIES("602","拷贝对象属性出错"),
    FAILED_USER_HEAD_IMAGE("701","用户上传图像出错"),
    FAILED_UPLOAD_FILE_CREATE_DICTORY("702","文件服务目录创建失败"),

    FAILED_EXCEL_TITLE_NO_MAPPER("9001","excel数据源字段没有映射关系");

    private String code;
    private String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
